import request from '@/utils/request'

// 云主机 - 用户账单
export function ecsForUser(query) {
    return request({
        url: '/report/bill/ecsForUser',
        method: 'get',
        params: query
    })
}
// 云服务商 - 用户账单
export function ecsForProvider(query) {
    return request({
        url: '/report/bill/ecsForProvider',
        method: 'get',
        params: query
    })
}
// 云主机-用户账单(三级 某系统得用量详情)
export function ecsForUserByProjrct(query) {
    return request({
        url: '/report/bill/ecsForUserByProjrct',
        method: 'get',
        params: query
    })
}
// 云主机-账单列表 (一级)
export function bills(query) {
    return request({
        url: '/report/bill/list',
        method: 'get',
        params: query
    })
}
// 云主机-账单列表 (二级)
export function listByProject(query) {
    return request({
        url: '/report/bill/listByProject',
        method: 'get',
        params: query
    })
}

// 导出
// 导出云主机-用户账单(一级-二级)
export function exportUserBill(query) {
    return request({
        url: '/report/exportUserBill',
        method: 'get',
        params: query
    })
}
// 导出云主机-用户账单--导出计费详情
export function exportEcsForUserByProjrct(query) {
    return request({
        url: '/report/bill/exportEcsForUserByProjrct',
        method: 'get',
        params: query
    })
}
// 导出云主机-服务商账单(一级-二级-三级)
export function exportEcsForProvider(query) {
    return request({
        url: '/report/bill/exportEcsForProvider',
        method: 'get',
        params: query
    })
}
// 导出账单列表
export function exportBillList(query) {
    return request({
        url: '/report/bill/exportBillList',
        method: 'get',
        params: query
    })
}